//-----------------------------------------------------------------------
//<copyright file="ChiTietPhieuXuat.cs" company="MinhSong">
//Copyright (c) MinhSong. All rights reserved.
//</copyright>
//-----------------------------------------------------------------------
using System;
using System.Runtime.Serialization;

namespace PMS.Entity
{
	public class CongNoCuaKhachHang: BaseEntity
	{
		#region Variable Declarations

		private string m_MaKH;
        private string m_TenKH;
        private string m_SoPX;
        private string m_SoPG;
        private DateTime m_NgayGiao;
        private string m_MaThuoc;
        private string m_TenHoatChat;
        private string m_TenBietDuoc;
        private int m_SoLuong;
        private int m_DonGia;
        private int m_ThanhToan;

		#endregion

		#region Constructors

		public CongNoCuaKhachHang() {}


		#endregion

		#region Properties

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string MaKH
		{
			get { return m_MaKH; }
			set { m_MaKH = value;
				OnPropertyChanged("MaKH");
		}
		}

        /// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string TenKH
		{
			get { return m_TenKH; }
			set { m_TenKH = value;
				OnPropertyChanged("TenKH");
		}
		}

		/// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string SoPX
		{
			get { return m_SoPX; }
			set { m_SoPX = value;
				OnPropertyChanged("SoPX");
		}
		}

        /// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string SoPG
		{
			get { return m_SoPG; }
			set { m_SoPG = value;
				OnPropertyChanged("SoPG");
		}
		}
		
         /// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public DateTime NgayGiao
		{
			get { return m_NgayGiao; }
			set { m_NgayGiao = value;
				OnPropertyChanged("NgayGiao");
		}
		}

        /// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string MaThuoc
		{
			get { return m_MaThuoc; }
			set { m_MaThuoc = value;
				OnPropertyChanged("MaThuoc");
		}
		}

        /// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string TenHoatChat
		{
			get { return m_TenHoatChat; }
			set { m_TenHoatChat = value;
				OnPropertyChanged("TenHoatChat");
		}
		}

        /// <summary>
		///
		/// </summary>
		///<value>This type is string</value>
		[DataMember]
		public string TenBietDuoc
		{
			get { return m_TenBietDuoc; }
			set { m_TenBietDuoc = value;
				OnPropertyChanged("TenBietDuoc");
		}
		}


        /// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int SoLuong
		{
			get { return m_SoLuong; }
			set { m_SoLuong = value;
				OnPropertyChanged("SoLuong");
		}
		}

        /// <summary>
		///
		/// </summary>
		///<value>This type is int</value>
		[DataMember]
		public int DonGia
		{
			get { return m_DonGia; }
			set { m_DonGia = value;
				OnPropertyChanged("DonGia");
		}
		}

        /// <summary>
		///
		/// </summary>
		///<value>This type is deciaml</value>
		[DataMember]
		public decimal ThanhTien
		{
			get { return m_DonGia*SoLuong; }

		}

        /// <summary>
		///
		/// </summary>
		///<value>This type is deciaml</value>
		[DataMember]
		public int ThanhToan
		{
			get { return m_ThanhToan; }
			set { m_ThanhToan = value;
				OnPropertyChanged("ThanhToan");

		}
		}

         /// <summary>
		///
		/// </summary>
		///<value>This type is deciaml</value>
		[DataMember]
		public decimal ConNo
		{
			get { return ThanhTien-ThanhToan; }

		}

        /// <summary>
        ///
        /// </summary>
        ///<value>This type is deciaml</value>
        [DataMember]
        public string KhachHang
        {
            get { return MaKH + " - " + TenKH; }

        }

		#endregion
	}
}//End Class
